<!DOCTYPE html>
<html style="overflow: hidden;">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>JAVIS电商用户行为分析与可视化平台</title>
    <script src="/static/manager/jquery-1.8.3.min.js" type="text/javascript"></script>
    <link href="/static/manager/bootstrap.min.css" type="text/css" rel="stylesheet"/>
    <script src="/static/manager/bootstrap.min.js" type="text/javascript"></script>
    <link href="/static/manager/jeesite.css" type="text/css" rel="stylesheet"/>
    <script src="/static/manager/jeesite.js" type="text/javascript"></script>
    <script>
        var _hmt=_hmt||[];(function(){var hm=document.createElement("script");hm.src="//hm.baidu.com/hm.js?82116c626a8d504a5c0675073362ef6f";var s=document.getElementsByTagName("script")[0];s.parentNode.insertBefore(hm,s);})();
    </script>
    <script>
        // 初始化jquery对象
        $(function(){
            $("#btnSubmit").click(function(){
                // 数据校验
                let oldpassword = $("#oldPassword").val();
                let newpassword = $("#newPassword").val();
                let enterPassword = $("#enterPassword").val();
                if(oldpassword == undefined || oldpassword == ""){
                    alert("请输入旧密码");
                    return;
                }
                if(newpassword == undefined || newpassword == ""){
                    alert("请输入新密码");
                    return;
                }
                if(enterPassword == undefined || enterPassword == ""){
                    alert("请输入确认密码");
                    return;
                }
                if(enterPassword != newpassword){
                    alert("新密码和确认密码不一致");
                    return;
                }
                $("#inputForm").submit();
            });
        });
    </script>
</head>
<body>
	<ul class="nav nav-tabs">
		<li class="active"><a href="/manager/modifyPassword/">修改密码</a></li>
	</ul><br>
	<form id="inputForm" class="form-horizontal" action="/manager/modifyPassword/" method="post" novalidate="novalidate">
		<input id="id" name="id" type="hidden" value="11">
	{{msg}}
	<script type="text/javascript">top.$.jBox.closeTip();</script>

		<div class="control-group">
			<label class="control-label">旧密码:</label>
			<div class="controls">
				<input id="oldPassword" name="oldPassword" type="password" value="" maxlength="50" minlength="3" class="required">
				<span class="help-inline"><font color="red">*</font> </span>
			</div>
		</div>
		<div class="control-group">
			<label class="control-label">新密码:</label>
			<div class="controls">
				<input id="newPassword" name="newPassword" type="password" value="" maxlength="50" minlength="3" class="required">
				<span class="help-inline"><font color="red">*</font> </span>
			</div>
		</div>
		<div class="control-group">
			<label class="control-label">确认新密码:</label>
			<div class="controls">
				<input id="enterPassword" name="confirmPassword" type="password" value="" maxlength="50" minlength="3" class="required" equalto="#newPassword">
				<span class="help-inline"><font color="red">*</font> </span>
			</div>
		</div>
		<div class="form-actions">
			<input id="btnSubmit" class="btn btn-primary" type="button" value="保 存">
		</div>
	</form>

	<script type="text/javascript">//<!-- 无框架时，左上角显示菜单图标按钮。
		if(!(self.frameElement && self.frameElement.tagName=="IFRAME")){
			$("body").prepend("<i id=\"btnMenu\" class=\"icon-th-list\" style=\"cursor:pointer;float:right;margin:10px;\"></i><div id=\"menuContent\"></div>");
			$("#btnMenu").click(function(){
				top.$.jBox('get:/jeesite/a/sys/menu/treeselect;JSESSIONID=3baf732ded45486a8f110d13601a4c9b', {title:'选择菜单', buttons:{'关闭':true}, width:300, height: 350, top:10});
				//if ($("#menuContent").html()==""){$.get("/jeesite/a/sys/menu/treeselect", function(data){$("#menuContent").html(data);});}else{$("#menuContent").toggle(100);}
			});
		}//-->

	</script>
</body>